package com.bdqn.t313.service;

import com.bdqn.t313.dao.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("orderService")
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public int save() {
        if(1==1){
            throw new RuntimeException("抛出异常！！");
        }

        return orderDao.save();
    }
}
